Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update extract_trajectory_narratives.m #113

Closed
wants to merge 2 commits into from
Closed

Conversation

Zizhuang-Miao
Copy link
Contributor

@jungheejung This change is in response to issue #103 (#103). Run the updated codes and then re-generate events.tsv files by bidsify_narratives.py should fix the negative durations in task-narratives. Please see the most recent commit for detail of changes.

Merge the newest master branch to my own branch
During ratings (4 seconds each), there were some rare but still present cases in the data where participants clicked to lock their response before 3.5 seconds, but moved their mouse 3.5-4 seconds whose trajectories were recorded. The previous code did not consider this scenario and used the first mouse move as the mouse trajectory onset time for all trials. In the case stated here, it will lead to a mouse trajectory onset time larger than the response time, further leading to a negative duration of the mouse trajectory.
In updated codes, the case stated here will have NaN for both the onset and duration of mouse trajectory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant